(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/home/components/new-coupon-login/coupons/index" ], {
    1255: function(n, o, t) {
        var e = t("ded4");
        t.n(e).a;
    },
    3941: function(n, o, t) {
        t.d(o, "b", function() {
            return e;
        }), t.d(o, "c", function() {
            return c;
        }), t.d(o, "a", function() {});
        var e = function() {
            var n = this, o = (n.$createElement, n._self._c, n.coupons.length);
            n.$mp.data = Object.assign({}, {
                $root: {
                    g0: o
                }
            });
        }, c = [];
    },
    "593d": function(n, o, t) {
        t.r(o);
        var e = t("7427"), c = t.n(e);
        for (var i in e) [ "default" ].indexOf(i) < 0 && function(n) {
            t.d(o, n, function() {
                return e[n];
            });
        }(i);
        o.default = c.a;
    },
    7427: function(n, o, t) {
        var e = t("4ea4").default;
        Object.defineProperty(o, "__esModule", {
            value: !0
        }), o.default = void 0;
        var c = e(t("ded3")), i = {
            name: "Coupons",
            components: {
                CouponCard: function() {
                    t.e("pages/home/components/new-coupon-login/coupons/coupon-card").then(function() {
                        return resolve(t("80e2"));
                    }.bind(null, t)).catch(t.oe);
                }
            },
            props: {
                coupons: {
                    type: Array,
                    default: function() {
                        return [];
                    }
                }
            },
            data: function() {
                return {
                    isScrolled: !1
                };
            },
            computed: {
                scrollViewStyle: function() {
                    var n = this, o = "";
                    if (this.coupons.length > 4) {
                        var t = function(o) {
                            var t, e = (null === (t = n.$store.state.systemInfo) || void 0 === t ? void 0 : t.scale) || .5;
                            return Math.floor(o * e);
                        }, e = 4 * (t(108) + t(10)) + t(26);
                        o = "height: ".concat(e, "px");
                    }
                    return o;
                }
            },
            created: function() {
                this.trackExpo();
            },
            methods: {
                handleScroll: function() {
                    this.isScrolled || (this.isScrolled = !0);
                },
                handleConfirm: function() {
                    this.trackClick("开心收下"), this.$emit("confirm");
                },
                handleClose: function() {
                    this.trackClick("关闭"), this.$emit("close");
                },
                getTrackParams: function() {
                    var n = this.coupons.slice(0, 4), o = this.coupons.reduce(function(n, o) {
                        return n + (o.discount_amount || 0);
                    }, 0), t = [], e = [];
                    return n.forEach(function(n) {
                        t.push({
                            1: "通用券",
                            2: "搬家券",
                            3: "大货车券",
                            4: "小B货运券",
                            5: "零担物流",
                            6: "司机会员优惠券"
                        }[n.business_type] || ""), e.push({
                            1: "立减券/满减券",
                            2: "折扣券"
                        }[n.discount_type] || "");
                    }), {
                        frame_city: this.$store.getters.commonStatisticsState.frame_city,
                        coupon_type: t.join(","),
                        rights_type: e.join(","),
                        discount_cnt: o / 100
                    };
                },
                trackExpo: function() {
                    this.$statistics("newuser_package_popup_expo", (0, c.default)({
                        popup_view: "新人礼包弹窗_曝光"
                    }, this.getTrackParams()));
                },
                trackClick: function(n) {
                    this.$statistics("newuser_package_popup_click", (0, c.default)({
                        coupon_slide: this.isScrolled ? "是" : "否",
                        button_type: n
                    }, this.getTrackParams()));
                }
            }
        };
        o.default = i;
    },
    ded4: function(n, o, t) {},
    f61e: function(n, o, t) {
        t.r(o);
        var e = t("3941"), c = t("593d");
        for (var i in c) [ "default" ].indexOf(i) < 0 && function(n) {
            t.d(o, n, function() {
                return c[n];
            });
        }(i);
        t("1255");
        var u = t("f0c5"), a = Object(u.a)(c.default, e.b, e.c, !1, null, "4c04a3e0", null, !1, e.a, void 0);
        o.default = a.exports;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/home/components/new-coupon-login/coupons/index-create-component", {
    "pages/home/components/new-coupon-login/coupons/index-create-component": function(n, o, t) {
        t("543d").createComponent(t("f61e"));
    }
}, [ [ "pages/home/components/new-coupon-login/coupons/index-create-component" ] ] ]);